import React, { Component } from 'react'
import Item from './Item'
import './Item'

export default class List extends Component {
    render() {
        return (
            <div>
                {
                    this.props.list.map((item)=>{
                    return <Item key={item.id} del={this.props.del}  edit={this.props.edit}id={item.id}>{item.name}</Item>;
                    })
                }
                
            </div>
        )
    }
}
